class LoginConfig {
  String? alarmmsg;
  String? loginopen;
  String? smsrlopen;
  String? oneclickopen;
  List<Links>? links;

  LoginConfig({this.alarmmsg, this.loginopen, this.smsrlopen, this.oneclickopen, this.links});

  LoginConfig.fromJson(Map<String, dynamic> json) {
    if (json["alarmmsg"] is String) {
      alarmmsg = json["alarmmsg"];
    }
    if (json["loginopen"] is String) {
      loginopen = json["loginopen"];
    }
    if (json["smsrlopen"] is String) {
      smsrlopen = json["smsrlopen"];
    }
    if (json["oneclickopen"] is String) {
      oneclickopen = json["oneclickopen"];
    }
    if (json["links"] is List) {
      links = json["links"] == null ? null : (json["links"] as List).map((e) => Links.fromJson(e)).toList();
    }
  }

  static List<LoginConfig> fromList(List<Map<String, dynamic>> list) {
    return list.map(LoginConfig.fromJson).toList();
  }
}

class Links {
  String? key;
  String? title;
  int? view;
  String? display;
  Click? click;

  Links({this.key, this.title, this.view, this.display, this.click});

  Links.fromJson(Map<String, dynamic> json) {
    if (json["key"] is String) {
      key = json["key"];
    }
    if (json["title"] is String) {
      title = json["title"];
    }
    if (json["view"] is num) {
      view = (json["view"] as num).toInt();
    }
    display = json["display"]?.toString();
    if (json["click"] is Map) {
      click = json["click"] == null ? null : Click.fromJson(json["click"]);
    }
  }

  static List<Links> fromList(List<Map<String, dynamic>> list) {
    return list.map(Links.fromJson).toList();
  }
}

class Click {
  String? react;
  String? jump;

  Click({this.react, this.jump});

  Click.fromJson(Map<String, dynamic> json) {
    if (json["react"] is String) {
      react = json["react"];
    }
    if (json["jump"] is String) {
      jump = json["jump"];
    }
  }

  static List<Click> fromList(List<Map<String, dynamic>> list) {
    return list.map(Click.fromJson).toList();
  }
}
